package com.zyy.sqlSession;

import com.zyy.pojo.Configuration;

/**
 * @author zyy
 * @date 2020/11/9 11:40 上午
 * @description
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
